package com.ssdp.controller;


import com.ssdp.dto.Result;
import com.ssdp.service.IShopTypeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author syo 2319615164@qq.com
 * @description 店铺类型接口
 * @date 2024/3/14
 * @Copyright syo
 */
@Api(tags = "店铺类型相关接口")
@RestController
@RequestMapping("/shop-type")
@RequiredArgsConstructor
public class ShopTypeController {

    private final IShopTypeService typeService;

    @ApiOperation("查询所有店铺类型")
    @GetMapping("list")
    public Result queryTypeList() {
        return typeService.queryTypeList();
    }

    // TODO 添加店铺类型

    // TODO 删除店铺类型

    // TODO 修改店铺类型

}
